
//#define UNIT_TESTING
#ifdef UNIT_TESTING

#include "SerializableTest.h"
#include <cppunit/ui/text/TestRunner.h>


#endif

/* GUI includes*/
#include <QtGui/QApplication>
#include "MapEditor.h"
#include "GUISpelbord.h"
#include "Map.h"
#include "MainWindow.h"

/* DATA includes */
#include <stdio.h>
#include <iostream>
#include "Bestand.h"
#include "SpelFactory.h"

using namespace std;

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	#ifdef UNIT_TESTING
	CppUnit::TextUi::TestRunner runner;
	runner.addTest( SerializableTest::suite() );
	runner.run();

	#endif

	/* spelFactory GUI

    GUImain w;
    w.show();
    a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
    a.exec();
	*/
	#if 0
	// spelFactory DATA
	SpelFactory * m_factory;
	m_factory = new SpelFactory;
	m_factory->createSpel(SINGLE);
	#endif
	//MapEditor bar;
	/*Map map;
	map.loadMap("Genesis");
	GUISpelbord bar(map, 30);
	bar.show();*/

	MainWindow window;
	window.show();

	return a.exec();
}
